const stateInit = {
    step:1
}

const reducer = (state = stateInit, action) => {
    switch (action.type) {
        case 'STEP':
            return Object.assign({}, state, {
                step:action.step,
                form: action.form
            });
        default:
            return state;
    }
}

export default reducer;